import request from '/@/utils/request';


export function getIpAddressList(query:Object) {
    return request({
        url: '/api/system/ip/list',
        method: 'get',
        params:query
    })
}

export function getIpAddress(id:string) {
    return request({
        url: '/api/system/ip/detail/'+id,
        method: 'get',
        //params:{id}
    })
}

export function addIpAddress(data:any) {
    return request({
        url: '/api/system/ip/add',
        method: 'post',
        data:data
    })
}

export function editIpAddress(data:any) {
    return request({
        url: '/api/system/ip/edit',
        method: 'put',
        data:data
    })
}

export function deleteIpAddress(ids:number[]) {
    return request({
        url: '/api/system/ip/delete',
        method: 'delete',
        data:{ids}
    })
}
